//
//  ZYVideoSlider.h
//  视频播放
//
//  Created by zhangzhenyun on 2018/8/1.
//  Copyright © 2018年 Beijing Youjiu Network. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZYVideoSlider;

typedef void (^SliderValueChangeBlock) (ZYVideoSlider *slider);
typedef void (^SliderFinishChangeBlock) (ZYVideoSlider *slider);
typedef void (^DraggingSliderBlock) (ZYVideoSlider *slider);

@interface ZYVideoSlider : UIView
/**0到1*/
@property (nonatomic, assign) CGFloat value;
/**0到1*/
@property (nonatomic, assign) CGFloat middleValue;

@property (nonatomic, assign) CGFloat lineWidth;
@property (nonatomic, assign) CGFloat sliderDiameter;
@property (nonatomic, strong) UIColor *sliderColor;
@property (nonatomic, strong) UIColor *maxColor;
@property (nonatomic, strong) UIColor *middleColor;
@property (nonatomic, strong) UIColor *minColor;

@property (nonatomic, copy) SliderValueChangeBlock valueChangeBlock;
@property (nonatomic, copy) SliderFinishChangeBlock finishChangeBlock;
@property (nonatomic, strong) DraggingSliderBlock draggingSliderBlock;
@property (nonatomic, assign) CGFloat initalProgress;

@end
